export const namespace = "contentCenter";

export const calcColumns = (params) => {
  const columns = [
    {
      title: "状态",
      dataIndex: "messageStatus",
      hideInSearch: true,
      valueEnum: {
        0: { text: "未读", status: "error" },
        1: { text: "已读", status: "success" },
      },
    },
    {
      title: "提醒时间",
      dataIndex: "remindTime",
      hideInSearch: true,
    },
    {
      title: "消息标题",
      dataIndex: "messageTitle",
    },
  ];
  if (params?.operate) {
    columns.push(...params?.operate);
  }
  return columns;
};
